import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import api from '@/common/request/index.js'
import {API_URL} from './env.js'
import {router,RouterMount} from '@/common/router.js'
import tools from '@/common/utils/tools.js'
import mixins from '@/common/mixins.js'
import uView from "uview-ui";
Vue.use(uView);
Vue.prototype.imgUrl = 'https://mystore-1304299581.cos.ap-guangzhou.myqcloud.com/static/image/'
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$API_URL = API_URL;
Vue.prototype.$tools = tools;
Vue.prototype.$mixins = mixins;
Vue.use(router);
App.mpType = 'app'
Vue.config.productionTip = false
const app = new Vue({
    store,
    ...App
})
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,router,'#app')
// #endif
// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
